package com.wavejo.reactor.service;

import com.wavejo.reactor.pojo.User;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
 * @Author WaveHi
 * @Date 26/10/2021 下午 5:06
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description
 */
@Service
public interface UserService {

    Mono<User> getUser(Long id);

    Flux<User> getAllUser();

    Mono<Void> addUser(Mono<User> userMono);
}
